﻿@model IEnumerable<LeadMaster.Models.ClientUsers>

@{
    ViewBag.Title = "Index";
}
<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table class="listtable contactstable" cellspacing="0" cellpadding="0">
    <tr>
        <th class="tableheader">
            @Html.DisplayName("User")
        </th>
        <th class="tableheader">
            @Html.DisplayName("Company")
        </th>
        <th class="tableheader">
            @Html.DisplayName("Call Centre")
        </th>
        <th class="tableheader">&nbsp;</th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.User.UserName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Company.Company)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CallCentre.CallCentre)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.ClientUsersID }) |
            @Html.ActionLink("Details", "Details", new { id=item.ClientUsersID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.ClientUsersID })
        </td>
    </tr>
}

</table>
